var status = -1;
var selectionLog = [];

function action(d, h, j) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = j;
    var c = -1;
    if (status <= c++) {
        cm.dispose()
    } else {
        if (status === c++) {
            var g = ["mirrorD_322_0_", "mirrorD_322_1_", "mirrorD_322_2_", "mirrorD_322_3_"];
            var a = [0, 0, 0, 0];
            var b = ["能够望见牢牢竖在滚烫沙漠上的仙人掌的阿里安特西门外。", "能在炙热沙地上啪嗒啪嗒跑动的蜥蜴所栖息的阿里安特东门外。", "阿里安特北门外，聚集着专门打劫阿里安特商团的入侵者们。", "由木乃伊把守的古代阿里安特王国的金字塔。"];
            var f = new Array();
            var e = 41800 + parseInt((cm.getMapId() - 320000000) / 1000000) * 4 - 4;
            for (var c = 0; c < b.length; c++) {
                if (cm.getNumberFromQuestInfo(e + c, "count") > 0) {
                    f.push(b[c] + "\n\n通关次数:" + cm.getNumberFromQuestInfo(e + c, "count") + "\r\n最短纪录:" + cm.getNumberFromQuestInfo(e + c, "min") + "分 " + cm.getNumberFromQuestInfo(e + c, "sec") + "秒")
                } else {
                    f.push(b[c] + "\n\n通关次数:- \r\n最短纪录:-分 -秒")
                }
            }
            if (cm.isQuestActive(40104)) {
                g.push("map322090110");
                a.push(0);
                f.push("怪盗幻影的据点所在的南部沙漠。")
            }
            cm.setMirrorDungeonInfo(g, a, f);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};